package com.earnings.okhttputils.utils.bean;

import com.earnings.okhttputils.utils.UrlConstant.HttpUrl;

/**
 * Created by Administrator on 2017/5/8 0008.
 */

public class TreasureListData {
    private String id;
    private String rich;
    private String createtime;
    private String uid;
    private String type;
    private String img;

    private String title;
    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRich() {
        return rich;
    }

    public void setRich(String rich) {
        this.rich = rich;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImg() {
        if(img==null)img="";
        if(img.indexOf( "http" )==-1)img= HttpUrl.index+img;
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
